package io.renren.modules.xm.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.xm.dao.MasterWorkerDao;
import io.renren.modules.xm.entity.MasterWorkerEntity;
import io.renren.modules.xm.service.MasterWorkerService;


@Service("masterWorkerService")
public class MasterWorkerServiceImpl extends ServiceImpl<MasterWorkerDao, MasterWorkerEntity> implements MasterWorkerService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<MasterWorkerEntity> page = this.selectPage(
                new Query<MasterWorkerEntity>(params).getPage(),
                new EntityWrapper<MasterWorkerEntity>()
        );

        return new PageUtils(page);
    }

}
